<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:set var="jpath" value="${pageContext.request.contextPath}" />
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8"> 
	<title>产品详情</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0,minimum-scale=1.0,user-scalable=0" />
	<script type="text/javascript" src="${jpath}/static/page/js/jquery-3.3.1.min.js"></script>
	<script type="text/javascript" src="${jpath}/static/page/js/bootstrap.min.js"></script>
	<link rel="stylesheet" type="text/css" href="${jpath}/static/page/css/bootstrap.min.css">
	<link rel="stylesheet" type="text/css" href="${jpath}/static/page/css/cpxq.css">
</head>
<body>
	<div class="container" style="padding:-1px;">
		<div class="row" style="background-color:#F86941; height:3rem; line-height:3rem;padding:0px;">
			<div class="col-xs-2 back">
				<a style="font-size: 1rem;color: black;" href="${jpath}/page/tjcp">
				<img src="${jpath}/static/page/img/fh3.png" width="15px" height="15px"></a>
			</div>
			<div class="col-xs-8" style="text-align:center; color:#FFFFFF; font-size:1.2rem;">
				产品详情
			</div>
			<div class="clo-xs-2" style="text-align: right;padding-right: 1rem;">
				<img src="${jpath}/static/page/img/sc1.png" width="15px" height="15px">
			</div>
		</div>
	</div>
	<div class="container" style="padding:-1px;">
		<div class="row">
			<div class="col-xs-12" style="padding:0px;">
				
					<img 
					<c:if test="${cp.tp==null || cp.tp=='' }">
						src="${jpath}/static/page/img/woshou.png"
					</c:if>
					src="${jpath}/${cp.tp}" width="100%">
			</div>
		</div>
		<div class="row">
			<div class="col-xs-3"></div>
			<div class="col-xs-9">
				<p class="djs">贷款倒计时：30天：23小时：48分：29秒</p>
			</div>
		</div>
	</div>
	<div class="container" style="background-color:#2B6AB1;">
		<div class="row" style="margin:0px;">
			<div class="row rz">
				<p>融资限额: <span style="font-size:2.5rem;">${cp.je }</span>万元</p>
			</div>
			<div class="row rz-1">
				<p>产品名称： ${cp.bt }</p>
			</div>
		</div>
	</div>
	<div class="container hh" style="margin-top:1rem;">
		<div class="row">
			<p class="title">办理条件</p>
		</div>
		<div class="row">
			<p class="wz">${cp.tj }</p>
		</div>
		<div class="row">
			<p class="title">办理流程</p>
		</div>
		<div class="row">
			<p class="wz">${cp.lc }</p>
		</div>
		<div class="row">
			<p class="title">产品简介</p>
		</div>
		<div class="row">
			<p class="wz">${cp.jj }</p>
		</div>
		<div class="row">
			<p class="title">关于我们</p>
		</div>
		<div class="row">
			<p class="wz">● 公司规模： ${cp.gsgm }</p>
			<p class="wz">● 金融机构： ${cp.jrjg }</p>
			<p class="wz">● 联系电话： ${cp.lxwm }</p>
		</div>
		<form>
			<input type="hidden" value="${cp.id }" id="cpId">
			<input type="hidden" value="${USER.id }" id="yhId">
		</form>
		<div class="row" style="margin-bottom:4rem;">
			<button class="btn" type="button" id="subBtn">对接</button>
		</div>
		<div class="row dz">
			<div class="col-xs-12 dz-1">
				<div class="row">
					<div class="col-xs-4" style="border-right:1px solid #FFFFFF;">
						<div class="row">
							<div class="col-xs-6 dz-2"><img src="${jpath}/static/page/img/dz.png" width="15px" height="15px"></div>
							<div class="col-xs-6 dz-3">点赞</div>
						</div>
					</div>
					<div class="col-xs-4" style="border-right:1px solid #FFFFFF;">
						<div class="row">
							<div class="col-xs-6 dz-2"><img src="${jpath}/static/page/img/ly.png" width="15px" height="15px"></div>
							<div class="col-xs-6 dz-3">留言</div>
						</div>
					</div>
					<div class="col-xs-4">
						<div class="row">
							<div class="col-xs-6 dz-2"><img src="${jpath}/static/page/img/fx.png" width="15px" height="15px"></div>
							<div class="col-xs-6 dz-3">分享</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="row" style="margin-top:3rem;">
		</div>
	</div>
</body>
<script type="text/javascript">
		$(function(){
			$("#subBtn").click(function(){
				if(confirm("确认对接")){
					var cpId=$("#cpId").val();
					var yhId=$("#yhId").val();
					$.post("${jpath}/chanpingduijie/manager/addcpdj",{cpId:cpId,yhId:1},function(data){
						console.log(data);
						var json = $.parseJSON(data);
						alert(json.resMsg);
					});
				};
			});
		});
</script>
</html>